package com.itheima.service.backend;

import com.itheima.dto.OrderSettingDTO;
import com.itheima.vo.OrderSettingVO;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 预约设置服务接口
 */
public interface OrdersettingService {

    /**
     * 下载Excel数据
     * @param response
     */
    void download(HttpServletResponse response);

    /**
     * 上传Excel数据到数据库
     * @param excelFile
     * @throws Exception
     */
    void saveExcelDataToDatabase(MultipartFile excelFile) throws Exception;

    /**
     * 根据月份查询预约设置数据
     * @param month
     * @return
     */
    List<OrderSettingVO> getOrderSettingByMonth(String month) throws Exception;

    /**
     * 根据预约日期设置每天可预约人数
     * @param orderSettingDTO
     * @return
     */
    void editNumberByOrderDate(OrderSettingDTO orderSettingDTO) throws Exception;
}
